package com.example.cache_module.controller;

import com.example.cache_module.service.TestService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author lihw
 * @Date 2024/5/7 16:34
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/test")
public class TestController {

    private final TestService testService;


    @GetMapping("call")
    public String call(String name) {

        return testService.call(name);
    }
}
